package com.orifine.orm.type;

import java.io.InputStream;
import java.io.OutputStream;
import java.sql.SQLException;

import com.orifine.orm.Information;
import com.orifine.orm.Type;
import com.orifine.orm.model.ColumnModel;

/**
 * 用于 BLOBs (Binary Large OBjects)。存放最多 65,535 字节的数据。
 * @author Administrator
 *
 */
public class Blob extends Type implements java.sql.Blob {
	@Override
	public String getScriptType(ColumnModel columnMapper) {
		return "BLOB";
	}

	@Override
	public String getScriptValue(ColumnModel columnMapper) {
		return "not support";
	}

	@Override
	public Information getDefaultInfo(ColumnModel columnMapper) {
		return super.getDefaultInfo(columnMapper);
	}

	@Override
	public void free() throws SQLException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public InputStream getBinaryStream() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public InputStream getBinaryStream(long pos, long length) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public byte[] getBytes(long pos, int length) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long length() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long position(byte[] pattern, long start) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long position(java.sql.Blob pattern, long start) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public OutputStream setBinaryStream(long pos) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int setBytes(long pos, byte[] bytes) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void truncate(long len) throws SQLException {
		// TODO Auto-generated method stub
		
	}
}
